package com.kevin.j2eeToolBox.patterns.strategy;

public class Environment {

	private Strategy strategy;

	public Strategy getStrategy() {
		return strategy;
	}

	public void setStrategy(Strategy strategy) {
		this.strategy = strategy;
	}

	public Environment(Strategy strategy) {
		this.strategy = strategy;
	}

	public int calculate(int a, int b) {

		return this.strategy.calculate(a, b);
	}
}
